package com.hebrf.sdk.utils;

import android.app.Activity;
import android.support.v7.app.AlertDialog;

import com.hebrf.sdk.dialog.BaseDialog;
import com.hebrf.sdk.dialog.DialogFactory;
import com.hebrf.sdk.dialog.YnDialog;

/**
 * Created by lyb on 2017/6/13.
 * Email: 1373519715@qq.com
 * Blog: https://littleiii.github.io
 */

public class DialogUtils {

    public void showWarn (Activity activity, String s){
        BaseDialog warnDialog= DialogFactory.getWarnDialog(activity);
        warnDialog.setContent(s+"");
        warnDialog.show();

    }
    public void showYN(Activity activity , String s, YnDialog.CallBack callBack){
        BaseDialog ynDialog=DialogFactory.getYnDialog(activity,callBack);
        ynDialog.setContent(s);
        ynDialog.show();

    }
    public void showQrcode(Activity activity , String s){
        BaseDialog qrcodeDialog=DialogFactory.getQrcodeDialog(activity);
        qrcodeDialog.setContent(s);
        qrcodeDialog.show();

    }


}
